package com.jie.controller;

import com.jie.dto.CombinationTopicDTO;

import com.jie.lanxin.service.LanXinService;
import com.jie.lanxin.vo.MbeddingVO;
import com.jie.response.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 杰
 * @Project :net-disk
 * @DateTime: 2024/5/12 12:57
 **/
@RestController
@RequestMapping("/lanXinModel")
@Api(tags = "运动推荐模块")
public class LanXinModelController {
    @Autowired
    private LanXinService lanXinService;
    @ApiOperation("运动推荐接口")
    @PostMapping("/get/mbeddingThematicCategory")
    public RespBean<CombinationTopicDTO> getMbeddingThematicCategory(@RequestBody MbeddingVO mbeddingVO){
        return  RespBean.success("mbeddingThematicCategory",lanXinService.getMbeddingThematicCategory(mbeddingVO));
    }
    @ApiOperation("更新推荐系统模型")
    @PostMapping("/update/mbeddingThematicCategoryModel")
    public  RespBean updateMbeddingThematicCategoryModel(){
        return RespBean.success("updateMbeddingThematicCategoryModel",lanXinService.updateMbeddingModel());
    }

}
